<template>
  <img @click="toBack" class="back c-p" src="@/assets/images/back.png" title="返回" />
</template>

<script setup lang="ts">
import { useBack } from '@/hooks/useBack';
const { toBack } = useBack();
</script>

<style lang="scss" scoped>
.back {
  position: absolute;
  top: 10px;
  left: 10px;
  height: 32px;
  opacity: 0.3;
  &:hover {
    opacity: 1;
  }
}
</style>
